using System;
namespace ServiceStack.Logging
{
	public class LogManager
	{
		private static ILogFactory logFactory;
		public static ILogFactory LogFactory
		{
			get
			{
				if (LogManager.logFactory == null)
				{
					return new NullLogFactory(false);
				}
				return LogManager.logFactory;
			}
			set
			{
				LogManager.logFactory = value;
			}
		}
		public static ILog GetLogger(Type type)
		{
			return LogManager.LogFactory.GetLogger(type);
		}
		public static ILog GetLogger(string typeName)
		{
			return LogManager.LogFactory.GetLogger(typeName);
		}
	}
}
